<UserControl x:Class="Rage.Juggernaut.CalculationOptionsPanelJuggernaut"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:dataInput="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.WPFToolkit"
  xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
  xmlns:local="clr-namespace:Rage.Juggernaut"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:System="clr-namespace:System;assembly=mscorlib"
  mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="1024">

  <UserControl.Resources>
    <local:CalculationOptionsJuggernaut x:Key="CalculationOptionsJuggernautDataSource" d:IsDataSource="True" />
    <local:RankingModeConverter x:Key="RankingModeConverter" />
    <local:ThreatValueConverter x:Key="ThreatValueConverter" />
    <local:PercentConverter x:Key="PercentConverter" />
    <Style x:Key="BorderStyle" TargetType="Border">
      <Setter Property="BorderBrush" Value="LightSteelBlue" />
      <Setter Property="BorderThickness" Value="1" />
      <Setter Property="Grid.ColumnSpan" Value="5" />
      <Setter Property="Background" Value="AliceBlue" />
    </Style>
    <Style x:Key="HeaderTextStyle" TargetType="TextBlock">
      <Setter Property="TextAlignment" Value="Left" />
      <Setter Property="VerticalAlignment" Value="Center" />
      <Setter Property="Margin" Value="4" />
      <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="NormalTextStyle" TargetType="TextBlock">
      <Setter Property="TextAlignment" Value="Left" />
      <Setter Property="VerticalAlignment" Value="Center" />
      <Setter Property="Margin" Value="4,2" />
    </Style>
  </UserControl.Resources>

  <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource CalculationOptionsJuggernautDataSource}}">
    <TabControl>
      <TabItem Header="Basics">
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
          </Grid.RowDefinitions>

          <!-- ============= Weighting Adjustments ============= -->
          <Border Grid.ColumnSpan="4" Grid.Row="0" Background="AliceBlue" BorderBrush="LightSteelBlue" BorderThickness="1">
            <TextBlock Margin="4" FontWeight="Bold" Text="Weighting Adjustments" />
          </Border>
          <!-- Rating Mode -->
          <TextBlock Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="1" Margin="4,2" TextAlignment="Left" VerticalAlignment="Center" Text="Ranking Mode:" />
          <ComboBox Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="1" Margin="2" SelectedItem="{Binding Path=RankingMode, Converter={StaticResource RankingModeConverter}, Mode=TwoWay}">
            <System:String>Mitigation Scale</System:String>
            <System:String>Burst Time</System:String>
            <System:String>CT Coverage</System:String>
          </ComboBox>
          <!-- Notice -->
          <TextBlock Grid.ColumnSpan="4" Grid.Row="2" Margin="4,2" FontSize="10" Text="The following settings will adjust the overall scores for each type. This does not involve Stat Weights as described by Pawn, SimCraft or other similar utilities. These are meant to describe your general importance to each point." TextWrapping="Wrap" />
          <!-- Hits to Survive -->
          <TextBlock x:Name="LB_HitsToSurvive" Grid.Row="3" Margin="4,2" Text="Hits to Survive:" TextAlignment="Left" VerticalAlignment="Center" />
          <Slider x:Name="SL_HitsToSurvive" Grid.Column="1" Grid.Row="3" Margin="2" LargeChange="{Binding ElementName=NUD_HitsToSurvive, Path=Increment}" Maximum="{Binding ElementName=NUD_HitsToSurvive, Path=Maximum}" Minimum="{Binding ElementName=NUD_HitsToSurvive, Path=Minimum}" SmallChange="0.01" Value="{Binding Mode=TwoWay, Path=HitsToSurvive}" />
          <inputToolkit:NumericUpDown x:Name="NUD_HitsToSurvive" Grid.Column="2" Grid.Row="3" Margin="2" DecimalPlaces="1" Increment="0.1" Maximum="10" Minimum="0" MinWidth="50" Value="{Binding Path=HitsToSurvive, Mode=TwoWay}" />
          <Button x:Name="BT_HitsToSurvive" Grid.Column="3" Grid.Row="3" ToolTipService.ToolTip="Click to reset the Hits to Survive to 3.5" Margin="2" Click="btnResetHitsToSurvive_Click" Content="Reset" />
          <!-- Burst Scale -->
          <TextBlock x:Name="LB_BurstScale" Grid.Row="4" Margin="4,2" Text="Burst Scale:" TextAlignment="Left" VerticalAlignment="Center" />
          <Slider x:Name="SL_BurstScale" Grid.Column="1" Grid.Row="4" Margin="2" IsEnabled="False" LargeChange="{Binding ElementName=NUD_BurstScale, Path=Increment}" Maximum="{Binding ElementName=NUD_BurstScale, Path=Maximum}" Minimum="{Binding ElementName=NUD_BurstScale, Path=Minimum}" SmallChange="0.01" Value="{Binding Mode=TwoWay, Path=BurstScale}" />
          <inputToolkit:NumericUpDown x:Name="NUD_BurstScale" Grid.Column="2" Grid.Row="4" Margin="2" DecimalPlaces="1" Increment="0.1" IsEnabled="False" Maximum="10" Minimum="0" Value="{Binding Path=BurstScale, Mode=TwoWay}" />
          <Button x:Name="BT_BurstScale" Grid.Column="3" Grid.Row="4" ToolTipService.ToolTip="Click to reset the Burst Scale to 3.0" Margin="2" Click="btnResetBurstScale_Click" Content="Reset" IsEnabled="False" />
          <!-- Threat Scale -->
          <TextBlock x:Name="LB_ThreatScale" Grid.Row="5" Margin="4,2" Text="Threat Scale:" TextAlignment="Left" VerticalAlignment="Center" />
          <ComboBox x:Name="CB_ThreatScale" Grid.Column="1" Grid.Row="5" Margin="2" SelectedItem="{Binding Path=ThreatScale, Converter={StaticResource ThreatValueConverter}, Mode=TwoWay}">
            <System:String>Almost None</System:String>
            <System:String>MT</System:String>
            <System:String>OT</System:String>
            <System:String>Crazy About Threat</System:String>
            <System:String>Custom...</System:String>
          </ComboBox>
          <inputToolkit:NumericUpDown x:Name="NUD_ThreatScale" Grid.Column="2" Grid.Row="5" Margin="2" DecimalPlaces="1" Increment="1" Maximum="100" Minimum="0" Value="{Binding Path=ThreatScale, Mode=TwoWay}" />
          <Button x:Name="BT_ThreatScale" Grid.Column="3" Grid.Row="5" ToolTipService.ToolTip="Click to reset the threat scale to 5.00" Margin="2" Click="btnResetThreatScale_Click" Content="Reset" />
          <!-- DPS Scale -->
          <TextBlock x:Name="LB_DPSScale" Grid.Row="6" Margin="4,2" Text="DPS Scale:" TextAlignment="Left" VerticalAlignment="Center" />
          <ComboBox x:Name="CB_DPSScale" Grid.Column="1" Grid.Row="6" Margin="2" SelectedItem="{Binding Path=DPSScale, Converter={StaticResource ThreatValueConverter}, Mode=TwoWay}">
            <System:String>Almost None</System:String>
            <System:String>MT</System:String>
            <System:String>OT</System:String>
            <System:String>Crazy About DPS</System:String>
            <System:String>Custom...</System:String>
          </ComboBox>
          <inputToolkit:NumericUpDown x:Name="NUD_DPSScale" Grid.Column="2" Grid.Row="6" Margin="2" DecimalPlaces="1" Increment="1" Maximum="100" Minimum="0" Value="{Binding Path=DPSScale, Mode=TwoWay}" />
          <Button x:Name="BT_DPSScale" Grid.Column="3" Grid.Row="6" ToolTipService.ToolTip="Click to reset the DPS scale to 1.00" Margin="2" Click="btnResetDPSScale_Click" Content="Reset" />
          <!-- ============= Customize Rotation ============= -->
          <Border Grid.ColumnSpan="4" Grid.Row="7" Background="AliceBlue" BorderBrush="LightSteelBlue" BorderThickness="1" Visibility="Collapsed">
            <TextBlock Margin="4" FontWeight="Bold" Text="Customize Rotation" />
          </Border>
          <!-- ========= PTR Mode ========= -->
          <!-- PTR Mode has been disabled as we just had a patch release -->
          <Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="12" Background="AliceBlue" BorderBrush="LightSteelBlue" BorderThickness="1" Visibility="Collapsed">
            <TextBlock Margin="4" FontWeight="Bold" Text="PTR Mode" VerticalAlignment="Center" />
          </Border>
          <!-- PTR Mode -->
          <CheckBox x:Name="CK_PtrMode" Grid.ColumnSpan="4" Grid.Row="13" Margin="2" Content="Use PTR v4.1.0" IsChecked="{Binding Mode=TwoWay, Path=PtrMode}" Visibility="Collapsed" />
          <!-- ========= Notices ========= -->
          <!-- Notices about needing to use the Boss Handler -->
          <Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="14" Margin="4,6,4,2" Background="AliceBlue" BorderBrush="LightSteelBlue" BorderThickness="1">
            <TextBlock Margin="4" FontWeight="Bold" Text="Notices" VerticalAlignment="Center" />
          </Border>
          <TextBlock Grid.ColumnSpan="4" Grid.Row="15" Margin="2" FontSize="10" Text="Note that many of Juggernaut's stats are based on Boss Content. Please see the Boss Handler (next to Options in the Tabs above) for additional Fight Related settings you can adjust.&#xA;&#xA;A Fresh 50 should use An Easy Boss to start and once some gear has been gathered to appropriately defend against that, move on to The Average Boss. More details on this can be found on the Boss Handler Pane and in the Documentation of Rage's website." TextWrapping="Wrap" />
        </Grid>
      </TabItem>
      <TabItem Header="Rotation">
        <Grid>
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
          </Grid.RowDefinitions>

          <!-- ============= OPENING ROTATION ============= -->
          <Border Style="{StaticResource BorderStyle}"><TextBlock Style="{StaticResource HeaderTextStyle}" Text="Opening Rotation" /></Border>
          <TextBlock Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="5" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" TextWrapping="Wrap" FontSize="10"
                     Text="Your opening rotation is the points you start the Boss Fight with. For instance, Enrage &gt; Saber Throw &gt; Force Leap. Your rotation will take any of these items into account, in order of placement." />

          <TextBlock Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="1" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" Text="Preset:" />
          <ComboBox Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="4" Margin="4,2" x:Name="CB_RotationOpeners" SelectionChanged="CB_RotationOpeners_SelectedIndexChanged">
            <System:String>Standard Full Immortal</System:String>
          </ComboBox>
          <Button Grid.Column="3" Grid.Row="3" Margin="4,2" Width="50" x:Name="BT_RotationRenameOpeners" Content="Rename"   Click="BT_RotationRenameOpeners_Click" />
          <Button Grid.Column="4" Grid.Row="3" Margin="4,2" Width="50" x:Name="BT_DeleteRotationOpeners" Content="Delete"   Click="BT_DeleteRotationOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="3" Margin="4,2" Width="50" x:Name="BT_NewRotationOpeners"    Content="New"      Click="BT_NewRotationOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="4" Margin="4,2" Width="50" x:Name="BT_RotationAddOpeners"    Content="&gt;&gt;" Click="BT_RotationAddOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="5" Margin="4,2" Width="50" x:Name="BT_RotationRemoveOpeners" Content="&lt;&lt;" Click="BT_RotationRemoveOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="6" Margin="4,2" Width="50" x:Name="BT_RotationUpOpeners"     Content="Up"       Click="BT_RotationUpOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="7" Margin="4,2" Width="50" x:Name="BT_RotationDownOpeners"   Content="Down"     Click="BT_RotationDownOpeners_Click" />
          <Button Grid.Column="2" Grid.Row="8" Margin="4,2" Width="50" x:Name="BT_RotationClearOpeners"  Content="Clear"    Click="BT_RotationClearOpeners_Click" />
          <ListBox Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="Menu_RotationOpeners" SelectionChanged="Menu_RotationOpeners_SelectedIndexChanged" MaxHeight="250" />
          <ListBox Grid.Column="3" Grid.Row="4" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="List_RotationOpeners" SelectionChanged="List_RotationOpeners_SelectedIndexChanged" MaxHeight="250" />

          <!-- ============= STANDARD ROTATION ============= -->
          <Border Style="{StaticResource BorderStyle}" Margin="4,6,4,2" Grid.Row="10">
            <TextBlock Style="{StaticResource HeaderTextStyle}" Text="Standard Rotation" />
          </Border>
          <TextBlock Grid.Column="0" Grid.Row="11" Grid.ColumnSpan="5" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" TextWrapping="Wrap" FontSize="10"
                     Text="Your Standard Rotation is the list of actions taken the bulk of the fight, above execute phase. This is a priority list meaning that the first ability will always be case as soon as its cooldown completes. The second ability will be cast as soon as its cooldown completes UNLESS the first ability happens at the same time, in which case the first ability will be activated, then the second ability. This progresses down the list until there are no GCDs left. If your list cannot cover every single GCD in combat, your filler move is used. Usually this is a Resource (Rage/Force, etc) generating move." />

          <TextBlock Grid.Column="0" Grid.Row="12" Grid.ColumnSpan="1" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" Text="Preset:" />
          <ComboBox Grid.Column="1" Grid.Row="12" Grid.ColumnSpan="4" Margin="4,2" x:Name="CB_Rotation" SelectionChanged="CB_Rotation_SelectedIndexChanged">
            <System:String>Standard Full Immortal</System:String>
          </ComboBox>
          <Button Grid.Column="3" Grid.Row="13" Margin="4,2" Width="50" x:Name="BT_RotationRename" Content="Rename"   Click="BT_RotationRename_Click" />
          <Button Grid.Column="4" Grid.Row="13" Margin="4,2" Width="50" x:Name="BT_DeleteRotation" Content="Delete"   Click="BT_DeleteRotation_Click" />
          <Button Grid.Column="2" Grid.Row="13" Margin="4,2" Width="50" x:Name="BT_NewRotation"    Content="New"      Click="BT_NewRotation_Click" />
          <Button Grid.Column="2" Grid.Row="14" Margin="4,2" Width="50" x:Name="BT_RotationAdd"    Content="&gt;&gt;" Click="BT_RotationAdd_Click" />
          <Button Grid.Column="2" Grid.Row="15" Margin="4,2" Width="50" x:Name="BT_RotationRemove" Content="&lt;&lt;" Click="BT_RotationRemove_Click" />
          <Button Grid.Column="2" Grid.Row="16" Margin="4,2" Width="50" x:Name="BT_RotationUp"     Content="Up"       Click="BT_RotationUp_Click" />
          <Button Grid.Column="2" Grid.Row="17" Margin="4,2" Width="50" x:Name="BT_RotationDown"   Content="Down"     Click="BT_RotationDown_Click" />
          <Button Grid.Column="2" Grid.Row="18" Margin="4,2" Width="50" x:Name="BT_RotationClear"  Content="Clear"    Click="BT_RotationClear_Click" />
          <ListBox Grid.Column="0" Grid.Row="14" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="Menu_Rotation" SelectionChanged="Menu_Rotation_SelectedIndexChanged" MaxHeight="250" />
          <ListBox Grid.Column="3" Grid.Row="14" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="List_Rotation" SelectionChanged="List_Rotation_SelectedIndexChanged" MaxHeight="250" />
          <TextBlock Grid.Column="0" Grid.Row="19" Grid.ColumnSpan="1" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" Text="Filler:" />
          <ComboBox Grid.Column="1" Grid.Row="19" Grid.ColumnSpan="5" Margin="4,2" x:Name="CB_Filler" Height="22" SelectionChanged="CB_Filler_SelectedIndexChanged">
            <System:String>Assault</System:String>
          </ComboBox>

          <!-- ============= EXECUTE ROTATION ============= -->
          <Border Style="{StaticResource BorderStyle}" Margin="4,6,4,2" Grid.Row="20">
            <TextBlock Style="{StaticResource HeaderTextStyle}" Text="Execute Rotation" />
          </Border>
          <TextBlock Grid.Column="0" Grid.Row="21" Grid.ColumnSpan="5" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" TextWrapping="Wrap" FontSize="10"
                     Text="Your Execute Rotation is the list of actions taken at the end of the fight, when the boss's health has dropped low enough to enable what are called Execute Abilities. This is a priority list as well." />

          <CheckBox Grid.Column="0" Grid.Row="22" Grid.ColumnSpan="5" Margin="4,2" IsChecked="{Binding Mode=TwoWay, Path=ExecRotEnabled}" VerticalAlignment="Center" x:Name="CK_ExecRotEnabler" Content="My Rotation Changes during Execute Phase" Checked="CK_ExecRotEnabler_CheckedChanged" Unchecked="CK_ExecRotEnabler_CheckedChanged" />
          <TextBlock Grid.Column="0" Grid.Row="23" Grid.ColumnSpan="1" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" Text="Preset:"/>
          <ComboBox Grid.Column="1" Grid.Row="23" Grid.ColumnSpan="4" Margin="4,2" x:Name="CB_RotationExecutes" SelectionChanged="CB_RotationExecutes_SelectedIndexChanged" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}">
            <System:String>Standard Full Immortal</System:String>
          </ComboBox>
          <Button Grid.Column="3" Grid.Row="24" Margin="4,2" Width="50" x:Name="BT_RotationRenameExecutes" Content="Rename"   Click="BT_RotationRenameExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="4" Grid.Row="24" Margin="4,2" Width="50" x:Name="BT_DeleteRotationExecutes" Content="Delete"   Click="BT_DeleteRotationExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="24" Margin="4,2" Width="50" x:Name="BT_NewRotationExecutes"    Content="New"      Click="BT_NewRotationExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="25" Margin="4,2" Width="50" x:Name="BT_RotationAddExecutes"    Content="&gt;&gt;" Click="BT_RotationAddExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="26" Margin="4,2" Width="50" x:Name="BT_RotationRemoveExecutes" Content="&lt;&lt;" Click="BT_RotationRemoveExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="27" Margin="4,2" Width="50" x:Name="BT_RotationUpExecutes"     Content="Up"       Click="BT_RotationUpExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="28" Margin="4,2" Width="50" x:Name="BT_RotationDownExecutes"   Content="Down"     Click="BT_RotationDownExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <Button Grid.Column="2" Grid.Row="29" Margin="4,2" Width="50" x:Name="BT_RotationClearExecutes"  Content="Clear"    Click="BT_RotationClearExecutes_Click" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <ListBox Grid.Column="0" Grid.Row="25" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="Menu_RotationExecutes" SelectionChanged="Menu_RotationExecutes_SelectedIndexChanged" MaxHeight="250" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <ListBox Grid.Column="3" Grid.Row="25" Grid.ColumnSpan="2" Grid.RowSpan="5" Margin="4,2" x:Name="List_RotationExecutes" SelectionChanged="List_RotationExecutes_SelectedIndexChanged" MaxHeight="250" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}" />
          <TextBlock Grid.Column="0" Grid.Row="30" Grid.ColumnSpan="1" Grid.RowSpan="1" Style="{StaticResource NormalTextStyle}" Text="Filler:" />
          <ComboBox Grid.Column="1" Grid.Row="30" Grid.ColumnSpan="5" Margin="4,2" x:Name="CB_FillerExecutes" Height="22" SelectionChanged="CB_FillerExecutes_SelectedIndexChanged" IsEnabled="{Binding ElementName=CK_ExecRotEnabler, Path=IsChecked, Mode=OneWay}">
            <System:String>Assault</System:String>
          </ComboBox>
        </Grid>
      </TabItem>
      <TabItem Header="Misc">
        <Grid>
          <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
          </Grid.RowDefinitions>
          <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
          </Grid.ColumnDefinitions>
          <TextBlock Text="Special Options" Grid.Row="0" Grid.ColumnSpan="2" Margin="4,2" FontWeight="Bold" />
          <!-- Row 1: Lag -->
          <TextBlock Grid.Row="1" Grid.Column="0" Margin="4,2" VerticalAlignment="Center" Text="Lag (ms):"/>
          <inputToolkit:NumericUpDown Grid.Row="1" Grid.Column="1" Margin="4,2" Value="{Binding Lag, Mode=TwoWay, UpdateSourceTrigger=Default}" Maximum="999" d:LayoutOverrides="HorizontalAlignment" Height="20" />
          <!-- Row 2: React -->
          <TextBlock Grid.Row="2" Grid.Column="0" Margin="4,2" VerticalAlignment="Center" Text="React (ms): *" ToolTipService.ToolTip="This doesn't affect you unless the number is over 250. Blizzard allows users 1/4 second reaction before penalizing them." d:LayoutOverrides="HorizontalAlignment"/>
          <inputToolkit:NumericUpDown Grid.Row="2" Grid.Column="1" Margin="4,2" Value="{Binding React, Mode=TwoWay, UpdateSourceTrigger=Default}" Maximum="500" d:LayoutOverrides="HorizontalAlignment" Height="20" />
          <!-- Row 3: SE Use Dur -->
          <CheckBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="4" Content="Use Duration for Special Effects" ToolTipService.ToolTip="" IsChecked="{Binding SE_UseDur, Mode=TwoWay, UpdateSourceTrigger=Default}"/>
          <!-- Row 4: PTR Mode -->
          <CheckBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="4" Content="PTR Mode *" IsChecked="{Binding PtrMode, Mode=TwoWay, UpdateSourceTrigger=Default}" />
          <!-- Row 4: PTR Mode -->
          <TextBlock Text="Stance/Form" Grid.Row="5" Grid.ColumnSpan="2" Margin="2" VerticalAlignment="Center" />
          <ComboBox Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" Margin="4,2" SelectedIndex="{Binding Stance, Mode=TwoWay, UpdateSourceTrigger=Default}">
            <System:String>Shii-Cho Form</System:String>
            <System:String>Soresu Form</System:String>
            <System:String>Shien Form</System:String>
          </ComboBox>
        </Grid>
      </TabItem>
    </TabControl>
  </Grid>
</UserControl>
